package core;

import datastructure.WeatherInfo;

public class MakeMessage {
	WeatherInfo weather;
	public MakeMessage(WeatherInfo weather) {
		this.weather=weather;
	}
	public StringBuilder Message(){
		StringBuilder ans=new StringBuilder();
		ans.append("城市:"+weather.getCity()+"\n当前温度："+weather.getTemperature()+"℃\n风向："+weather.getWindDirection()+"  风力："+weather.getWindForce()+"\n"+weather.getDate()+" "+weather.getWeek());
		ans.append("明天："+weather.getForecastDate(0)+"\n温度："+weather.getForecastLow(0)+"℃~"+weather.getForecastHigh(0)+"℃");
		return ans;
	}
}
